<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%-- 引入页面头 --%>
<%@ include file="/pageHead.jsp"%>
	<input type="hidden" id="id" name="id" value="" />
	<div class="pageMain">
		<div class="pageTitle"><%=MessageResourcesUtils.getMessage(request, "systemmanage.servicemanagement.title") %><span></span>
		<%=MessageResourcesUtils.getMessage(request, "servicemessage.services.ordermessage.title1") %><span></span>
		<%=MessageResourcesUtils.getMessage(request, "servicemessage.services.ordermessage.title4") %></div>
		</div>
		<div class="pageBody">
			<div class="form-group">
				<ul>
					<li>
						<i>*</i>
						<label><%=MessageResourcesUtils.getMessage(request, "dailyoperation.storechargemanage.storename") %></label>
						<span><input type="text" id="name" name="name" value="" class="validate[required,maxSize[50]]"/></span>
					</li>
				</ul>
			</div>	
		</div>
		<div class="button-group">
				<input type="button" class="btn btn-default" id="butNext" name="butNext" value="<%=MessageResourcesUtils.getMessage(request, "common.button.next") %>" />
		</div>
	</div>
<script type="text/javascript">
$(document).ready(function(){
	$("#name").issNewMagnifier({
		title: '<%=MessageResourcesUtils.getMessage(request, "systemmanage.databasebinding.storemagnifiertitle") %>',
		url: '${systemctx}/publicMagnifier/publicMagnifier.json',
		sortName : 'modifytime',
		sortOrder : 'desc',
		linkName: 'number',
		callSqlKey: 'queryStoreMagnifierSql',
		changeIgnore: ['name'],
		columns: [[
				{title:'<%=MessageResourcesUtils.getMessage(request, "dailyoperation.store.column.number") %>', field:'number', width:180, sortable:true, align: 'left'},
				{title:'<%=MessageResourcesUtils.getMessage(request, "dailyoperation.store.column.name") %>', field:'name', sortable:true, align: 'left', formel:'name'},
				{field:'id',hidden:true,formel:'id'}
		]],
		onBeforeOpen:function(p){
	      var queryParams = {
	    		  querystore: '%' + $("#name").val() + '%',
	    		  statusid: <%=SysConstant.RecordStatus.VALID %>,
	    		  state : <%=SysConstant.CommonApproveStatus.OK %>
	      };
	      return queryParams;
	    }
	});
	
	$('#butNext').click(function(){
		var id = $('#id').val();
		var name = $('#name').val();
		if(id ==''){
			alert('<%=MessageResourcesUtils.getMessage(request, "alertinfo.servicemanage.alert1") %>')
		}else{
			showSending();
			$(this).isswindow({
				noheader : true,
				url : encodeURI(encodeURI('${systemctx}/dailyoperation/servicemanage/servicelist.web?id='+id+'&name='+name))
			});
			closeSending();
		}
	});
});

</script>
<%-- 引入页面尾 --%>
<%@ include file="/pageFloor.jsp"%>